import request from '@/utils/request'

export function changePassword(data) {
  return request({
    url: '/profile/password',
    method: 'post',
    data
  })
}

export function newNotice() {
  return request({
    url: '/profile/newNotice',
    method: 'get'
  })
}

export function listNotice(query) {
  return request({
    url: '/profile/notices',
    method: 'get',
    params: query
  })
}

export function readNotice(data) {
  return request({
    url: '/profile/readNotice',
    method: 'post',
    data
  })
}

export function batchReadNotice(data) {
  return request({
    url: '/profile/batchReadNotice',
    method: 'post',
    data
  })
}

export function removeNotice(data) {
  return request({
    url: '/profile/removeNotice',
    method: 'post',
    data
  })
}

export function batchRemoveNotice(data) {
  return request({
    url: '/profile/batchRemoveNotice',
    method: 'post',
    data
  })
}

